package main

import (
	"github.com/kataras/iris"
	_ "server/bitkop/app/model"
	"server/bitkop/core"
	_ "server/bitkop/core"
	"server/bitkop/router"
)

func newBitkop() *iris.Application {
	app := iris.New()

	// 注册API路由
	router.RegistRoutes(app)

	// set websocket

	return app
}

func main() {
	app := newBitkop()
	app.Run(iris.Addr(core.BK.TOMLConfig.Server.GetAddr()))
}
